package com.huanletao.spring.aop;

import com.huanletao.proxy.jdkproxy.LoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * <p>
 * LoginService 默认的LoginService 实现;
 * </p>
 *
 * @package: com.huanletao.proxy.jdkproxy
 * @Description:
 * @className: DefaultLoginServiceImpl
 * @author: @NNCSKJ ADMIN
 * @copyright: Copyright (c) 2022/6/26 12:11
 * @version: V1.0
 */
@Service
@Permssion("nihao")
public class DefaultLoginServiceImpl implements LoginService {

    private static final Logger logger = LoggerFactory.getLogger(DefaultLoginServiceImpl.class);

    @Permssion("fff")
    @Log(title = "hosfsdkfjslkdfj")
    @Override
    public String login(String username, String password) {
        logger.info("用户登录逻辑实现.{},{}", username, password);
        logger.info(getClass()+"#login");
        return "登录成功";
    }

    @Override
    public String logout(String username) {
        return null;
    }
}
